package com.gton.lpl.controller;


import com.gton.lpl.common.annotation.NeedTokenByJWT;
import com.gton.lpl.common.pojo.Resp;
import com.gton.lpl.entity.GpItem;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author GuoTong
 * @since 2021-10-21
 */
@RestController
@RequestMapping("/gp-item")
@Api(tags = {"功能具体组件配置控制台"})
public class GpItemController {


    @PostMapping(value = "/addItem/{menuId}", name = "提交保存新组件")
    @NeedTokenByJWT(rule = 3000)
    @ApiOperation("提交保存新组件模块Item")
    public Resp addItemByMenu(@PathVariable("menuId") String menuId,
                              @RequestBody GpItem gpItem) {

        return null;
    }

}

